//
//  JFBOrderRefuseDS.h
//  ios-supplier
//
//  Created by feynmanyuan on 15/4/17.
//  Copyright (c) 2015年 feynmanyuan. All rights reserved.
//

#import "JFBOrderDS.h"

@interface JFBRefuseOrderDS : JFBOrderDS

// 角色［商户］
@property (nonatomic, strong) NSString *role;
// 拒绝原因
@property (nonatomic, strong) NSString *reason;
// 退款状态
@property (nonatomic, strong) NSString *refundStatus;

- (instancetype)initWithAttributes:(NSDictionary *)attributes;

+ (NSURLSessionDataTask *)loadOrderList:(void (^)(NSArray *orders, NSError *error))block pager:(JFBPager*)pager;
//获取拒绝订单的明细
+ (NSURLSessionDataTask *) getOrderDetail:(void (^)(JFBRefuseOrderDS *order, NSError *error))block orderID:(NSUInteger)orderID;
//拒绝订单
+ (NSURLSessionDataTask *)refuse:(void (^)(BOOL isSuccess, JFBRefuseOrderDS *order, NSError *error))block orderID:(NSUInteger)orderID reason:(NSString*)reason;

+ (NSURLSessionDataTask *)refund:(void (^)(BOOL isSuccess, JFBOrderDS *order, NSString *message, NSError *error))block orderID:(NSUInteger)orderID;
@end
